[js] how combine to functions on submit?
Posted
by Mahmoud
on Stack Overflow
See other posts from Stack Overflow
or by Mahmoud
Published on 2010-05-07T21:53:56Z
Indexed on
2010/05/07
21:58 UTC
Read the original article
Hit count: 242
hey there,
as you can see, i have to functions first to check if all forms are not empty and the second function is to verify the captcher, when i combine them together both work at the same time, i want to first to verify the first function, when that function returns true then the other function starts,
here is the code that i used on form
<form action="reg.php" method="post" enctype="application/x-www-form-urlencoded" onsubmit=" Checking(this); return jcap();" >
As you can see both function execute at the same time
so i tried this
<form action="reg.php" method="post" enctype="application/x-www-form-urlencoded" onsubmit=" if(Checking(this) == true ){ return jcap();}" >
is bypass both
© Stack Overflow or respective owner